<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>路由调试</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            padding: 20px;
            background: #f5f5f5;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .test-link {
            display: block;
            padding: 10px 15px;
            margin: 10px 0;
            background: #1890ff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            text-align: center;
        }
        .test-link:hover {
            background: #40a9ff;
        }
        .info {
            background: #e6f7ff;
            border: 1px solid #91d5ff;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>路由调试工具</h1>
        
        <div class="info">
            <h3>当前问题分析：</h3>
            <p>路由配置存在嵌套问题：</p>
            <ul>
                <li>访问 /dashboard 时匹配到 /* 路由</li>
                <li>然后在 AppContent 内部又匹配 /dashboard</li>
                <li>这可能导致组件渲染问题</li>
            </ul>
        </div>
        
        <h3>测试不同的路由：</h3>
        
        <a href="/" class="test-link">根路径 /</a>
        <a href="/dashboard" class="test-link">仪表盘 /dashboard</a>
        <a href="/simple-dashboard" class="test-link">简单仪表盘 /simple-dashboard</a>
        <a href="/test-dashboard" class="test-link">测试仪表盘 /test-dashboard</a>
        <a href="/no-router" class="test-link">无路由组件 /no-router</a>
        <a href="/login" class="test-link">登录页面 /login</a>
        
        <div class="info">
            <h3>调试步骤：</h3>
            <ol>
                <li>先测试 /simple-dashboard 是否正常</li>
                <li>再测试 /no-router 是否正常</li>
                <li>最后测试 /dashboard 看是否有问题</li>
            </ol>
        </div>
        
        <script>
            // 显示当前路径
            document.addEventListener('DOMContentLoaded', function() {
                const currentPath = window.location.pathname;
                const info = document.createElement('div');
                info.className = 'info';
                info.innerHTML = `<strong>当前路径：</strong> ${currentPath}`;
                document.querySelector('.container').insertBefore(info, document.querySelector('h3'));
            });
        </script>
    </div>
</body>
</html>